package com.by.controller;

import com.by.bean.UserInfo;
import com.by.context.UserContext;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @version 1.0
 * @Author 彭彦彬
 * @Date 2025/4/14 10:48
 * @注释
 */
@RestController
public class TokenController {
    @GetMapping("/token")
    public void getToken(){
        //获取用户信息
        UserInfo info = UserContext.get();
        System.out.println(info);
        UserContext.clear();
    }
}
